<?php
/**
 * Created by PhpStorm.
 * User: tingyugetc
 * Date: 16/12/24
 * Time: 下午4:30
 */

namespace App\Repositories;


use App\Models\Agent;

class AgentRepository
{
    use BaseRepository;

    protected $model;

    public function __construct()
    {
        $this->model = new Agent();
    }

    public static function getAllAgents() {
        return Agent::all();
    }

    public static function addAgent(Agent $agent) {
        return $agent->save();
    }
}